import { v4 } from 'uuid'

export function getUserTempId() {
  const userTempId = localStorage.getItem('userTempId')
  if (userTempId) {
    return userTempId
  } else {
    const userTempId = v4()
    localStorage.setItem('userTempId', userTempId)
    return userTempId
  }
}
